<div class="user">
<h2>Edit User</h2>
	<?php echo $form->create('User');?>
		<?php echo $form->input('id');?>
		<?php echo $form->input('username');?>
		<?php echo $form->input('passwd');?>
		<?php echo $form->input('name');?>
		<?php echo $form->input('email');?>
		<?php echo $form->input('last_visit');?>
		<?php echo $form->input('group_id', array('options' => $groups));?>
		<?php echo $form->input('profile_id');?>
		<?php echo $form->input('active');?>
		<?php echo $form->submit('Update');?>
	</form>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link('Delete', array('action'=>'delete', $html->tagValue('User/id')), null, 'Are you sure you want to delete #' . $html->tagValue('User/id')); ?>
		<li><?php echo $html->link('List Users', array('action'=>'index')); ?></li>
		<li><?php echo $html->link('View Groups', array('controller'=> 'groups', 'action'=>'view')); ?></li>
		<li><?php echo $html->link('Add Groups', array('controller'=> 'groups', 'action'=>'add')); ?></li>
	</ul>
</div>
